package org.fjsei.yewu.jyjc.model;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

import static cn.hutool.core.date.DatePattern.NORM_DATETIME_PATTERN;

/**
 * @author 黄金周
 * @since 2024/5/13 下午8:08
 */
@Data
@NoArgsConstructor
public class FjAmrAuthReq {

    @JSONField(name = "USERNAME")
    private String username;

    @JSONField(name = "PASSWD")
    private String password;

    @JSONField(name = "ACCESS_DATE", format = NORM_DATETIME_PATTERN)
    private LocalDateTime accessDate;

    public FjAmrAuthReq(String username, String password, LocalDateTime accessDate) {
        this.username = username;
        this.password = password;
        this.accessDate = accessDate;
    }
}
